<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
    <%@ taglib uri="/WEB-INF/dream.tld" prefix="dream"%>
        <% String ctx = request.getContextPath();
   request.setAttribute("ctx", ctx);
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>客户留言</title>
<meta content="客户留言" name="description" />
<meta content="客户留言" name="keywords" />
<meta content="all" name="robots" />
<link href="${ctx}/css/skin/style/style.css" type="text/css" rel="stylesheet" />
<link href="${ctx}/css/skin/style/common.css" type="text/css" rel="stylesheet" />
<script type="text/javascript" src="${ctx}/js/common.js"></script>
<script type="text/javascript">
	function refresh() {
		var img = document.getElementById("checkCodeImg");
		var now = new Date();
		img.src = "${ctx}/pages/qiantai/message/Validate.jsp?code=" + now.getTime();
	}
</script>
</head>
<body>

		<div class="crumbs">首页 &gt; 客户留言</div>
		<div class="page">
            <div class="maintitle">
                <p>客户留言</p><span>&nbsp;</span>
            </div>
            <div class="inquiry">
<table  width="701" height="456" border="0" cellpadding="0" cellspacing="0">
	<tr>
		<td width="8" height="418" background="images/inside_txt_02_01.gif">			</td>
		<td width="684" height="418" valign="top">
        <div style="color:#826851; line-height:25px; padding-left:12px; padding-right:12px; padding-top:9px;">
          <table width="95%" border="0" align="center" cellpadding="0" cellspacing="0">
          <tr>
            <td>
            <input type="button" value="我要留言" class="searchbt" onclick="window.location.href='${ctx}/pages/qiantai/message/leaveMessage.jsp'"/>
            </td> 
          </tr>
            <tr>
              <td>
              <c:forEach var="mess" items="${lists}">
                  <table width="100%"  border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#FFFFFF" >
                    <tr bgcolor="#DFDFDF">
                      <td width="17%" height="22" align="right" bgcolor="#EFEFEF" > 主　题： </td>
                      <td colspan="10" bgcolor="#EFEFEF" align="left">&nbsp;${mess.motive}</td>
                    </tr>
                    <tr bgcolor="#DFDFDF">
                      <td align="right" valign="top" bgcolor="#F8F8F8" ><br />
                        留言内容： </td>
                      <td colspan="5" align="center" bgcolor="#F8F8F8"  ><br />
                          <table width="96%"  border="0" cellpadding="0" cellspacing="0">
                            <tr>
                              <td  align="left"><font color="#000080">${mess.content}</font> </td>
                            </tr>
                        </table></td>
                    </tr>
                    <tr bgcolor="#EFEFEF">
                      <td height="22" align="right" bgcolor="#EFEFEF" > 留言者： </td>
                      <td width="22%" bgcolor="#EFEFEF" >${mess.userName}</td>
                      <td width="12%" align="right" bgcolor="#EFEFEF" >留言时间：</td>
                      <td width="17%" bgcolor="#EFEFEF" >${mess.createTime}</td>
                      <c:if test="${mess.revertTime!=null}">
                      <td width="12%" align="right" bgcolor="#EFEFEF" >回复时间：</td>
                      <td width="20%" bgcolor="#EFEFEF" >${mess.revertTime}</td>
                      </c:if>
                       <c:if test="${mess.revertTime==null}">
                      <td width="12%" align="right" bgcolor="#EFEFEF" ></td>
                      <td width="20%" bgcolor="#EFEFEF" ></td>
                      </c:if>
                    </tr>
                     <c:if test="${mess.revertContent!=null}">
                    <tr bgcolor="#DFDFDF">
                      <td height="22" align="right" bgcolor="#F8F8F8" valign="top" > 管理员回复： </td>
                      <td colspan="5" align="center" bgcolor="#F8F8F8" ><table width="97%"  border="0" cellpadding="0" cellspacing="0" >
                          <tr>
                            <td height="4"></td>
                          </tr>
                          <tr>
                            <td>${mess.revertContent}</td></tr>
                          <tr>
                            <td height="4"></td>
                          </tr>
                      </table></td>
                    </tr>
                      </c:if>
                    <c:if test="${mess.revertContent==null}">
                    <tr bgcolor="#DFDFDF">
                      <td height="22" align="right" bgcolor="#F8F8F8" valign="top" > </td>
                      <td colspan="5" align="center" bgcolor="#F8F8F8" ><table width="97%"  border="0" cellpadding="0" cellspacing="0" >
                          <tr>
                            <td height="4"></td>
                          </tr>
                          <tr>
                            <td></td></tr>
                          <tr>
                            <td height="4"></td>
                          </tr>
                      </table></td>
                    </tr>
                      </c:if>
                    <tr valign="top" bgcolor="#F7F7F7">
                      <td height="12" colspan="6" bgcolor="#FFFFFF" ><hr size="1" /></td>
                    </tr>
                  </table>
                  </c:forEach>       
                  <table width="100%" border="0" cellspacing="0" cellpadding="0">
                    <tr>
                      <td><div align="right">
                      <dream:page url="${ctx}/message.do?method=findAllMessage&page=" name="pageInfo" styleClass="currentA"/> </div></td>
                    </tr>
                  </table>
                </td>
            </tr>
          </table>
          <br />
</div>
</td>
		<td width="9" height="418" background="images/inside_txt_04_01.gif">			</td>
	</tr>
	<tr>
		<td colspan="3" width="701" height="9" background="images/inside_txt_05.gif">			</td>
	</tr>
</table>
<div class="clear"></div>
            </div>  
        </div>
</body>
</html>
